package shap03;

/**
 * @author Administrator
 */
public class Phone {
    private String brand;
    private int price;
    private String color;
    void getColor(String color1){
        color=color1;
    }
    String getColor(){
        return color;
    }
    void  setBrand(String brand1){
        brand=brand1;
    }
    String getBrand(){
        return brand;
    }
    void getPrice(int price1){
        if(price1<0){
            System.out.println("没有白送的，请重新输入");
        }else if(price1>3000){
            System.out.println("我们不是奸商，请重新输入");
        }else{
            price=price1;
        }
    }

    int getPrice(){
        return price;
    }
    void play(){
      System.out.println("打游戏");
    }
    void book(){
        System.out.println("看书");
    }
    void chat(){
        System.out.println("聊天");
    }
}
